package com.ruleengine.context.impl;

import java.util.UUID;

import com.ruleengine.context.IExecuteIdFactory;

/**
 * 默认工作流执行id工厂.
 * <p>默认工作流执行id使用：工作流id + uuid 形式.
 * @author wuxiao
 *
 * Created on Apr 6, 2012
 */
public class DefaultExecuteIdFactory implements IExecuteIdFactory {

    /* (non-Javadoc)
     * @see com.wx.workflow.engine.context.IExecuteIdFactory#createExecuteId(java.lang.String)
     */
    public String createExecuteId(String workflowId) {
        // TODO Auto-generated method stub
        return workflowId + UUID.randomUUID().toString();
    }

}
